<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="我要贷款">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">

                            <#if param?exists>
                                <#if param.get("username")?exists><#assign username=param.get("username")></#if>
                                <#if param.get("status")?exists>
                                    <#assign status=(param.get("status"))?number >
                                        <#else>
                                            <#assign status=-1>
                                </#if>
                            </#if>

                            <div class="toolbor-module search">
                                <input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                                <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                            </div>

                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form action="" method="post">
                                <table class="data-list">
                                    <tr class="header">
                                        <td>ID</td>
                                        <td>用户名称</td>
                                        <td>信用积分</td>
                                        <td>借款标题</td>
                                        <td>借款金额</td>
                                        <td>年利率</td>
                                        <td>投标次数</td>
                                        <td>借款期限</td>
                                        <td>状态</td>
                                        <td>操作</td>
                                        <td>发布时间</td>
                                        <td>审核时间</td>
                                    </tr>
                                    <#import "../../common/function.html" as func>
                                        <#list list as item>
                                            <tr class="s">
                                                <td>${(item.id!)?c}</td>
                                                <td>
                                                    <a href="javascript:void(0)" onclick='alertPop("用户详细信息查看","url:get?${request.getContextPath()}/admin/attestation/viewUserInfo.html?username=${item.user.showName}",500,230,"true","","true","text")'>
                                                        ${item.user.showName!}
                                                    </a>
                                                </td>
                                                <td>${item.user.credit.value!0}分</td>
                                                <td title="${item.name}">
                                                    <span style="color:#FF0000">【<@func.borrowTypeName item=item /> 】</span>
                                                    <a href="#">${item.name!}</a>
                                                </td>
                                                <td>${item.account!}元</td>
                                                <td>${item.apr!}%</td>
                                                <td>${item.tender_times!0}</td>
                                                <td><#if item.isday==1>${item.timeLimitDay!"-"}天<#else>${item.timeLimit!"-"}个月</#if></td>
                                                <#assign status=item.status!(-1)>
                                                    <td><@func.statusTypeName status=item.status type=item.type /></td>
                                                    <td>
                                                        <a href="${request.getContextPath()}/admin/borrow/viewFullBorrow.html?id=${item.id?c}">审核</a>
                                                    </td>
                                                    <td>${item.addtime?string('yyyy-MM-dd HH:mm:ss')!}</td>
                                                    <td>${item.verifyTime?string('yyyy-MM-dd HH:mm:ss')!}</td>
                                            </tr>
                                        </#list>

                                </table>
                            </form>

                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>

                                <!--翻页系统--{-->
                                <div class="container s_formPage">
                                    <#import "../../common/page.html" as pager>
                                        <@pager.pagination page=page url="/admin/borrow/showReviewBorrow.html" map=param style="style1" />
                                </div>
                                <!--翻页系统--}-->
                            </div>
                            <!--底部工具栏--}-->

                            <script>

                                var urls = 'showReviewBorrow.html?search=true';
                                function sousuo(){
                                    var sou = "";
                                    var username = $("#username").val();
                                    if (username!=""&&username!="请输入用户名"){
                                        sou += "&username="+username;
                                    }
                                    location.href=urls+sou;
                                }
                            </script>
                        </div>
        </div>
    </div>
    <div class="mc-b"><#include "../foot.html"></div>
    <#include "../jsPage.html">
    </body>
</html>

